import os
import subprocess

i='D:\\HAYDEN\\CAD\\KICAD\\DIY\\K210\\K210\\K210'
#print(os.path.dirname(os.path.abspath(__file__)))
#os.system('java -jar "'+os.path.dirname(os.path.abspath(__file__))+'"/jar/FreeRouting.jar -de '+i+'.dsn"')

src=i+'.dsn'
if os.path.exists(src):
	CREATE_NO_WINDOW = 0x08000000
	#subprocess.Popen('java -jar "'+os.path.dirname(os.path.abspath(__file__))+'"/jar/FreeRouting.jar -de '+i+'.dsn"',creationflags=CREATE_NO_WINDOW)
	subprocess.Popen('java -jar "'+os.path.dirname(os.path.abspath(__file__))+'"/jar/FreeRouting.jar -de '+src"',creationflags=CREATE_NO_WINDOW)
else:
	print("NO!")